﻿/*****************************************************************//**
 * @file    FITKAcousticsVTKViewAdaptorLoadPower.h
 * @brief   Adaptor for 'power' data.

 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-11-25
 *********************************************************************/

#ifndef __FITKAcousticsVTKViewAdaptorLoadPower_H__
#define __FITKAcousticsVTKViewAdaptorLoadPower_H__

#include "FITKAcousticsVTKViewAdaptorBase.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for 'power' data.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-11-25
     */
    class FITKACOUSTICSGRAPHADAPTORAPI FITKAcousticsVTKViewAdaptorLoadPower : public FITKAcousticsVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKAcousticsVTKViewAdaptorLoadPower);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-25
         */
        explicit FITKAcousticsVTKViewAdaptorLoadPower() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-25
         */
        ~FITKAcousticsVTKViewAdaptorLoadPower() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-25
         */
        bool update() override;

    };

    // Regist power adaptor
    Register2FITKViewAdaptorFactory(LoadPowerSEAShell, Acoustics::FITKLoadPowerSourcesSEAShell, FITKAcousticsVTKViewAdaptorLoadPower);
    Register2FITKViewAdaptorFactory(LoadPowerSEABeam, Acoustics::FITKLoadPowerSourcesSEABeam, FITKAcousticsVTKViewAdaptorLoadPower);
    Register2FITKViewAdaptorFactory(LoadPowerSEAAcoustic, Acoustics::FITKLoadPowerSourcesSEAAcoustic, FITKAcousticsVTKViewAdaptorLoadPower);
}   // namespace Exchange

#endif // __FITKAcousticsVTKViewAdaptorLoadPower_H__